package com.tg.paw.ums.controller;

import cn.hutool.core.date.DateUtil;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * OmsController
 *
 * @author Rubble
 * @date 2020/6/12
 */
@RestController
@Api(tags = "用户管理系统", value = "UmsController")
public class UmsController {

    @Value("${spring.application.name}")
    private String serverName;

    @GetMapping({"/","/welcome"})
    public String welcome(){
        return "welcome to " + serverName +" "+ DateUtil.now();
    }
}
